<template>
  <div id="app">
    <Title-bar/>
    <router-view></router-view>
  </div>
</template>

<script>
import { ipcRenderer } from 'electron'
import TitleBar from '@/components/TitleBar'
export default {
  name: 'gitee-helper',
  components: {
    TitleBar
  },
  created () {
    ipcRenderer.on('logout', () => {
      this.$store.dispatch('logout')
      this.$router.push({ name: 'login' })
    })
  }
}
</script>
